package cn.gudian.cms.Admin
/**
 * 角色
 */
class AdminRole {
  static hasMany = [adminUser: AdminUser];
  String name //角色名称
  String roles //用户权限
  static constraints = {
    name(blank: false, unique: true) //角色名称
    roles(blank: false) //用户权限
  }

  String toString() {
    "${this.name}"
  }
     static mapping = {
     sort id:"desc"
   }
}

